package vista.web.java;

import java.io.IOException;

import javax.servlet.Servlet;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ClienteResultadoBusqueda extends HttpServlet implements Servlet{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2150458373937427132L;

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		// TODO Auto-generated method stub
		super.doGet(req, resp);
	}

	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		
		if ((String) req.getAttribute("combo") == "1"){
			req.setAttribute("columna", "idCliente");
		}
		if ((String) req.getAttribute("combo") =="2"){
			req.setAttribute("columna", "Apellidos");
		}
		if ((String) req.getAttribute("combo") == "3"){
			req.setAttribute("columna", "DNI");
		}
//		int combo = (int) req.getAttribute("combo");
//		String cadenaConsulta = (String) req.getAttribute("consulta");
	}

}
